package com.yjps.house.model;


import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="t_building")
public class Building extends BaseModel{

    //用户id(门店经理)
    @Column(name = "user_id",length =11 ,nullable = false)
    private int agentsId;

    //地址id
    @Column(name = "address_id",length =11 ,nullable = false)
    private int addressId;


    //标题
    @Column(name = "building_title",length =50 ,nullable = false)
    private String titile;


    //描述
    @Column(name = "building_description",length =100 )
    private String description;


    //图片
    @Column(name = "building_image",length =100 )
    private String imageUrl;


    //平均房价
    @Column(name = "building_average_price",length =20 ,nullable = false)
    private String averagePrice;


    //房源类型
    @Column(name = "building_house_type",length =20 ,nullable = false)
    private String houseType;


    //状态
    @Column(name = "building_state",length =1 ,nullable = false)
    private boolean state;

    public int getAgentsId() {
        return agentsId;
    }

    public void setAgentsId(int agentsId) {
        this.agentsId = agentsId;
    }

    public int getAddressId() {
        return addressId;
    }

    public void setAddressId(int addressId) {
        this.addressId = addressId;
    }

    public String getTitile() {
        return titile;
    }

    public void setTitile(String titile) {
        this.titile = titile;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAveragePrice() {
        return averagePrice;
    }

    public void setAveragePrice(String averagePrice) {
        this.averagePrice = averagePrice;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }
}
